<?php echo $header; ?>
  <div class="breadcrumb">
    <?php foreach ($breadcrumbs as $breadcrumb) { ?>
    <a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
    <?php } ?>
  </div>
<div id="notification"></div>
<?php echo $column_left; ?><?php echo $column_right; ?>
<div id="content"><?php echo $content_top; ?>
  <h1><?php echo $heading_title; ?></h1>
  <div class="h1-bb"></div>
  <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data">
    <h2><?php echo $text_your_payment; ?></h2>
    <div class="content">
      <table class="form">
        <tbody>
          <tr>
            <td><?php echo $entry_tax; ?></td>
            <td><input type="text" name="tax" value="<?php echo $tax; ?>" /></td>
          </tr>
          <tr>
            <td><?php echo $entry_payment; ?></td>
            

                        <td>
                            <?php if ($cheque_visible) { ?>
                            <?php if ($payment == 'cheque') { ?>
                            <input type="radio" name="payment" value="cheque" id="cheque" checked="checked" />
                            <?php } else { ?>
                            <input type="radio" name="payment" value="cheque" id="cheque" />
                            <?php } ?>
                            <label for="cheque"><?php echo $text_cheque; ?></label><br><br>
                            <?php } ?>
                            <?php if ($paypal_visible) { ?>
                            <?php if ($payment == 'paypal') { ?>
                            <input type="radio" name="payment" value="paypal" id="paypal" checked="checked" />
                            <?php } else { ?>
                            <input type="radio" name="payment" value="paypal" id="paypal" />
                            <?php } ?>
                            <label for="paypal"><?php echo $text_paypal; ?></label><br><br>
                            <?php } ?>
                            <?php if ($bank_visible) { ?>
                            <?php if ($payment == 'bank_name') { ?>
                            <input type="radio" name="payment" value="bank" id="bank" checked="checked" />
                            <?php } else { ?>
                            <input type="radio" name="payment" value="bank" id="bank" />
                            <?php } ?>
                            <label for="bank"><?php echo $text_bank; ?></label><br><br>
                            <?php } ?>
                            <?php if ($qiwi_visible) { ?>
                            <?php if ($payment == 'qiwi') { ?>
                            <input type="radio" name="payment" value="qiwi" id="qiwi" checked="checked" />
                            <?php } else { ?>
                            <input type="radio" name="payment" value="qiwi" id="qiwi" />
                            <?php } ?>
                            <label for="qiwi"><?php echo $text_qiwi; ?></label><br><br>
                            <?php } ?>
                            <?php if ($card_visible) { ?>
                            <?php if ($payment == 'card') { ?>
                            <input type="radio" name="payment" value="card" id="card" checked="checked" />
                            <?php } else { ?>
                            <input type="radio" name="payment" value="card" id="card" />
                            <?php } ?>
                            <label for="card"><?php echo $text_card; ?></label><br><br>
                            <?php } ?>
                            <?php if ($yandex_visible) { ?>
                            <?php if ($payment == 'yandex') { ?>
                            <input type="radio" name="payment" value="yandex" id="yandex" checked="checked" />
                            <?php } else { ?>
                            <input type="radio" name="payment" value="yandex" id="yandex" />
                            <?php } ?>
                            <label for="yandex"><?php echo $text_yandex; ?></label><br><br>
                            <?php } ?>
                            <?php if ($webmoney_visible) { ?>
                            <?php if ($payment == 'webmoney') { ?>
                            <input type="radio" name="payment" value="webmoney" id="webmoney" checked="checked" />
                            <?php } else { ?>
                            <input type="radio" name="payment" value="webmoney" id="webmoney" />
                            <?php } ?>
                            <label for="webmoney"><?php echo $text_webmoney; ?></label><br><br>
				  <?php } ?>
                  <?php if ($webmoney_visibleWMZ) { ?>
                     <?php if ($payment == 'webmoneyWMZ') { ?>
                       <input type="radio" name="payment" value="webmoneyWMZ" id="webmoneyWMZ" checked="checked" />
                     <?php } else { ?>
                       <input type="radio" name="payment" value="webmoneyWMZ" id="webmoneyWMZ" />
					 <?php } ?>
                       <label for="webmoneyWMZ"><?php echo $text_webmoneyWMZ; ?></label><br><br>
                  <?php } ?>
				  <?php if ($webmoney_visibleWMU) { ?>
                     <?php if ($payment == 'webmoneyWMU') { ?>
                       <input type="radio" name="payment" value="webmoneyWMU" id="webmoneyWMU" checked="checked" />
                     <?php } else { ?>
                       <input type="radio" name="payment" value="webmoneyWMU" id="webmoneyWMU" />
                     <?php } ?>
                       <label for="webmoneyWMU"><?php echo $text_webmoneyWMU; ?></label><br><br>
                  <?php } ?>
                  <?php if ($webmoney_visibleWME) { ?>
					  <?php if ($payment == 'webmoneyWME') { ?>
					  <input type="radio" name="payment" value="webmoneyWME" id="webmoneyWME" checked="checked" />
					  <?php } else { ?>
					  <input type="radio" name="payment" value="webmoneyWME" id="webmoneyWME" />
					  <?php } ?>
					  <label for="webmoneyWME"><?php echo $text_webmoneyWME; ?></label><br><br>
                  <?php } ?>
                  <?php if ($webmoney_visibleWMY) { ?>
					  <?php if ($payment == 'webmoneyWMY') { ?>
					  <input type="radio" name="payment" value="webmoneyWMY" id="webmoneyWMY" checked="checked" />
					  <?php } else { ?>
					  <input type="radio" name="payment" value="webmoneyWMY" id="webmoneyWMY" />
					  <?php } ?>
					  <label for="webmoneyWMY"><?php echo $text_webmoneyWMY; ?></label><br><br>
                  <?php } ?>
                  <?php if ($webmoney_visibleWMB) { ?>
					  <?php if ($payment == 'webmoneyWMB') { ?>
					  <input type="radio" name="payment" value="webmoneyWMB" id="webmoneyWMB" checked="checked" />
					  <?php } else { ?>
					  <input type="radio" name="payment" value="webmoneyWMB" id="webmoneyWMB" />
					  <?php } ?>
					  <label for="webmoneyWMB"><?php echo $text_webmoneyWMB; ?></label><br><br>
                  <?php } ?>
                  <?php if ($webmoney_visibleWMG) { ?>
					  <?php if ($payment == 'webmoneyWMG') { ?>
					  <input type="radio" name="payment" value="webmoneyWMG" id="webmoneyWMG" checked="checked" />
					  <?php } else { ?>
					  <input type="radio" name="payment" value="webmoneyWMG" id="webmoneyWMG" />
					  <?php } ?>
					  <label for="webmoneyWMG"><?php echo $text_webmoneyWMG; ?></label>
                            <?php } ?>
                        </td>

            

















          </tr>
        </tbody>
        

                <tbody id="payment-cheque" class="payment">
                    <tr>
                        <td><?php echo $entry_cheque; ?></td>
                        <td><input type="text" name="cheque" value="<?php echo $cheque; ?>" /></td>
                    </tr>
                </tbody>
                <tbody class="payment" id="payment-paypal">
                    <tr>
                        <td><?php echo $entry_paypal; ?></td>
                        <td><input type="text" name="paypal" value="<?php echo $paypal; ?>" /></td>
                    </tr>
                </tbody>
                <tbody id="payment-bank" class="payment">
                    <tr>
                        <td><?php echo $entry_bank_name; ?></td>
                        <td><input type="text" name="bank_name" value="<?php echo $bank_name; ?>" /></td>
                    </tr>
                    <tr>
                        <td><?php echo $entry_bank_branch_number; ?></td>
                        <td><input type="text" name="bank_branch_number" value="<?php echo $bank_branch_number; ?>" /></td>
                    </tr>
                    <tr>
                        <td><?php echo $entry_bank_swift_code; ?></td>
                        <td><input type="text" name="bank_swift_code" value="<?php echo $bank_swift_code; ?>" /></td>
                    </tr>
                    <tr>
                        <td><?php echo $entry_bank_account_name; ?></td>
                        <td><input type="text" name="bank_account_name" value="<?php echo $bank_account_name; ?>" /></td>
                    </tr>
                    <tr>
                        <td><?php echo $entry_bank_account_number; ?></td>
                        <td><input type="text" name="bank_account_number" value="<?php echo $bank_account_number; ?>" /></td>
                    </tr>
                </tbody>
                <tbody id="payment-qiwi" class="payment">
                    <tr>
                        <td><?php echo $entry_qiwi; ?></td>
                        <td><span class="required">*</span><input type="text" name="qiwi" value="<?php echo $qiwi; ?>" /></td>
                        <td><?php echo $title_qiwi; ?></td>
                    </tr>
                </tbody>
                <tbody class="payment" id="payment-card">
                    <tr>
                        <td><?php echo $entry_card; ?></td>
                        <td><span class="required">*</span><input type="text" name="card" value="<?php echo $card; ?>" /></td>
                        <td><?php echo $title_card; ?></td>
                    </tr>
                </tbody>
                <tbody class="payment" id="payment-yandex">
                    <tr>
                        <td><?php echo $entry_yandex; ?></td>
                        <td><span class="required">*</span><input type="text" name="yandex" value="<?php echo $yandex; ?>" /></td>
                        <td><?php echo $title_yandex; ?></td>
                    </tr>
                </tbody>
                <tbody class="payment" id="payment-webmoney">
                    <tr>
                        <td><?php echo $entry_webmoney; ?></td>
                        <td><span class="required">*</span><input type="text" name="webmoney" value="<?php 
                                                                  if($webmoney){ echo $webmoney;}
                                                                  else { echo 'R'; } ?>" /></td>
                        <td><?php echo $title_webmoney; ?></td>
                    </tr>
                </tbody>
				<tbody class="payment" id="payment-webmoneyWMZ">
                    <tr>
                        <td><?php echo $entry_webmoneyWMZ; ?></td>
                        <td><span class="required">*</span><input type="text" name="webmoneyWMZ" value="<?php 
                                                                  if($webmoneyWMZ){ echo $webmoneyWMZ;}
                                                                  else { echo 'Z'; } ?>" /></td>
                        <td><?php echo $title_webmoneyWMZ; ?></td>
                    </tr>
                </tbody>
				<tbody class="payment" id="payment-webmoneyWMU">
                    <tr>
                        <td><?php echo $entry_webmoneyWMU; ?></td>
                        <td><span class="required">*</span><input type="text" name="webmoneyWMU" value="<?php 
                                                                  if($webmoneyWMU){ echo $webmoneyWMU;}
                                                                  else { echo 'U'; } ?>" /></td>
                        <td><?php echo $title_webmoneyWMU; ?></td>
                    </tr>
                </tbody>
				<tbody class="payment" id="payment-webmoneyWME">
                    <tr>
                        <td><?php echo $entry_webmoneyWME; ?></td>
                        <td><span class="required">*</span><input type="text" name="webmoneyWME" value="<?php 
                                                                  if($webmoneyWME){ echo $webmoneyWME;}
                                                                  else { echo 'E'; } ?>" /></td>
                        <td><?php echo $title_webmoneyWME; ?></td>
                    </tr>
                </tbody>
				<tbody class="payment" id="payment-webmoneyWMY">
                    <tr>
                        <td><?php echo $entry_webmoneyWMY; ?></td>
                        <td><span class="required">*</span><input type="text" name="webmoneyWMY" value="<?php 
                                                                  if($webmoneyWMY){ echo $webmoneyWMY;}
                                                                  else { echo 'Y'; } ?>" /></td>
                        <td><?php echo $title_webmoneyWMY; ?></td>
                    </tr>
                </tbody>
				<tbody class="payment" id="payment-webmoneyWMB">
                    <tr>
                        <td><?php echo $entry_webmoneyWMB; ?></td>
                        <td><span class="required">*</span><input type="text" name="webmoneyWMB" value="<?php 
                                                                  if($webmoneyWMB){ echo $webmoneyWMB;}
                                                                  else { echo 'B'; } ?>" /></td>
                        <td><?php echo $title_webmoneyWMB; ?></td>
                    </tr>
                </tbody>
				<tbody class="payment" id="payment-webmoneyWMG">
                    <tr>
                        <td><?php echo $entry_webmoneyWMG; ?></td>
                        <td><span class="required">*</span><input type="text" name="webmoneyWMG" value="<?php 
                                                                  if($webmoneyWMG){ echo $webmoneyWMG;}
                                                                  else { echo 'G'; } ?>" /></td>
                        <td><?php echo $title_webmoneyWMG; ?></td>
                    </tr>
                </tbody>

            

































      </table>


            <table>
                <tbody class="error" >
                    <tr> 
                        <td><?php echo $error_qiwi; ?></td>
                        <td><?php echo $error_card; ?></td>
                        <td><?php echo $error_yandex; ?></td>
                        <td><?php echo $error_webmoney; ?></td>
						<td><?php echo $error_webmoneyWMZ; ?></td>
						<td><?php echo $error_webmoneyWMU; ?></td>
						<td><?php echo $error_webmoneyWME; ?></td>
						<td><?php echo $error_webmoneyWMY; ?></td>
						<td><?php echo $error_webmoneyWMB; ?></td>
						<td><?php echo $error_webmoneyWMG; ?></td>
                    </tr>
                </tbody>
            </table>

            
    </div>
    <div class="buttons">
      <div class="left"><a href="<?php echo $back; ?>" class="button"><?php echo $button_back; ?></a></div>
      <div class="right"><input type="submit" value="<?php echo $button_continue; ?>" class="button" /></div>
    </div>
  </form>
  <?php echo $content_bottom; ?></div>
<script type="text/javascript"><!--
$('input[name=\'payment\']').bind('change', function() {
	$('.payment').hide();
	
	$('#payment-' + this.value).show();
});

$('input[name=\'payment\']:checked').trigger('change');
//--></script> 
<?php echo $footer; ?> 
